package com.sanyang.logistics.zhd.service;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.pojo.DriverDim;
import com.sanyang.logistics.pojo.OwnerTypeDim;
import com.sanyang.logistics.pojo.Schedule;
import com.sanyang.logistics.pojo.ThirdParty;
import com.sanyang.logistics.pojo.TruckDim;
import com.sanyang.logistics.zhd.dao.ScheduleDao;


@Repository("schService")
public class ScheduleServiceImp implements ScheduleService{
	@Autowired
	private ScheduleDao schedao;
	@Override
	public List<Schedule> getAllSchedule() {
		
		return schedao.getAllSchedule();
	}
	@Override
	public List<TruckDim> getAllTruck(TruckDim truckDim) {
		// TODO Auto-generated method stub
		return schedao.getAllTruck(truckDim);
	}
	@Override
	public List<TruckDim> getAllTrucktype() {
		// TODO Auto-generated method stub
		return schedao.getAllTrucktype();
	}
	@Override
	public List<OwnerTypeDim> getAllOname() {
		// TODO Auto-generated method stub
		return schedao.getAllOname();
	}
	@Override
	public List<DriverDim> getDriver(DriverDim driverDim) {
		// TODO Auto-generated method stub
		return schedao.getDriver(driverDim);
	}
	@Override
	public List<ThirdParty> getAllThirdParty(ThirdParty thirdParty) {
		// TODO Auto-generated method stub
		return schedao.getAllThirdParty(thirdParty);
	}
	@Override
	public TruckDim selectOneCar(Integer truck_id) {
		// TODO Auto-generated method stub
		return schedao.selectOneCar(truck_id);
	}
	@Override
	public void addSchedule(Schedule schedule) {
		schedao.addSchedule(schedule);
		
	}
	@Override
	public void delSchedule(Integer sched_id) {
		// TODO Auto-generated method stub
		schedao.delSchedule(sched_id);
	}
	@Override
	public List<TruckDim> upSelectOneCar(Integer truck_id) {
		// TODO Auto-generated method stub
		return schedao.upSelectOneCar(truck_id);
	}
	@Override
	public List<DriverDim> upSelectOneDriver(Integer driver_id) {
		// TODO Auto-generated method stub
		return schedao.upSelectOneDriver(driver_id);
	}
	@Override
	public List<ThirdParty> upSelectOneCarrier(Integer third_party_id) {
		// TODO Auto-generated method stub
		return schedao.upSelectOneCarrier(third_party_id);
	}
	@Override
	public List<Schedule> getAllPro(Schedule schedule) {
		// TODO Auto-generated method stub
		return schedao.getAllPro(schedule);
	}
	@Override
	public void upSchedule(Schedule sc) throws Exception {
		schedao.upSchedule(sc);
		
	}
	@Override
	public List<Schedule> upSelectOnePro(Integer sched_id) {
		// TODO Auto-generated method stub
		return schedao.upSelectOnePro(sched_id);
	}
	@Override
	public void submitSchedule(Integer sched_id, String exec_done_flag) throws Exception {
		schedao.submitSchedule(sched_id, exec_done_flag);
		
	}
	
	
	
	

}
